<?php 
use yii\bootstrap\ActiveForm;
use yii\helpers\Url;
use yii\helpers\Html;
?>
<style>
	.itemList .item-name{width: 70px;}
	input[type="text"]{padding-left: 10px;}
	input[type="reset"] {background-color:#999;}
</style>

<div class="row">
	<div class="container lh30">
		<?= isset($this->params['crumbs']) ? $this->params['crumbs'] : '' ?>
	</div>
</div>


			<div class="container mt10">
				<div class="pull-left">
					<?php $form=ActiveForm::begin(['id'=>'myform']);?>
						<ul class="add_user">
							<li class="itemList clearfix">
								<label class="item-name">账户名称</label>
								<div class="item-txt">
									<input type="text" name="user_name" readonly value="<?=$bossInfo['login_name'] ?>" datatype="*"/>
									<span class="red">*</span>
								</div>
							</li>
							<li class="itemList clearfix">
								<label class="item-name">账户密码</label>
								<div class="item-txt">
									<input type="text" name="user_pass" />
									<input type="hidden" name="id" value="<?=$id?>" />
									<span class="red">*</span>
								</div>
							</li>
							<li class="itemList clearfix">
								<label class="item-name">老板名称</label>
								<div class="item-txt">
									<input type="text" name="boss_name" value="<?=$bossInfo['user_name'] ?>"  datatype="*"/>
									<span class="red">*</span>
								</div>
							</li>
							<li class="itemList clearfix">
								<label class="item-name">所属代理商</label>
								<div class="item-txt">
									<input type="text" readonly value="<?=$this->userinfo->user_name ?>" />
								</div>
							</li>
							<li class="itemList clearfix">
								<label class="item-name">联系电话</label>
								<div class="item-txt">
									<input type="text" name="phone" value="<?=$bossInfo['contact_mobile']?>" datatype="*"/>
									<span class="red">*</span>
								</div>
							</li>

						</ul>
					<div style="padding-left: 80px;">
						<input type="submit" value="保存" class="sub btnBg" />
						<input type="reset" value="取消" class="reset btnBg" />
					</div>
					<?php ActiveForm::end();?>
				</div>


				<div class="pull-right">
					<table class="table table-bordered">
						<thead>
						<tr>
							<td>分店编号</td>
							<td>分店名</td>
							<td>开始时间</td>
							<td>结束时间</td>
							<td>创建时间</td>
							<td>是否开通线上店铺</td>
							<td>操作</td>
						</tr>
						</thead>
						<tbody>
						<?php foreach ($shopList as $r):?>
						<tr>
							<td><?=$r['shop_id']?></td>
							<td><?=$r['shop_name']?></td>
							<td><?=$r['start_time']?></td>
							<td><?=$r['end_time']?></td>
							<td><?=$r['create_time']?></td>
							<td>
								<?php if($r['isopen_online'] == 0){?>
								未开通
								<?php }elseif($r['isopen_online'] == 1){?>
								已开通
								<?php }else{?>
								审核中
								<?php }?>
							</td>
							<td><a href="<?=Url::toRoute(["bossmanage/openonline",'shop_id' => $r['shop_id']]) ?>">开通线上店铺</a></td>
						</tr>
						<?php endforeach;?>
						</tbody>
					</table>

				</div>

			</div>


